package com.aidex.biz.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 廉政建设对象 biz_lianzheng_jianshe
 * @author sean
 * @email 2074844820@qq.com
 * @date 2024-12-19
 */
@Data
public class LianzhengJianshe extends BaseEntity<LianzhengJianshe>
{
    private static final long serialVersionUID = 1L;


    /** 公司ID */
    private String companyId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    @NotBlank(message = "文件名称不允许为空")
    private String name;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String fileName;

    /** 数量 */
    @Excel(name = "数量")
    private Long counts;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String fileUrl;

    /** 类型(书记类型) */
    @Excel(name = "类型(书记类型)", dictType = "file_type")
    @NotBlank(message = "类型(书记类型)不允许为空")
    private String fileType;

    /** 建设类型 */
    @Excel(name = "建设类型", dictType = "jianshe_file_type")
    @NotBlank(message = "建设类型不允许为空")
    private String type;

    /** 排序 */
    private Long sort;

    /** 状态（0正常 1 停用） */
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date times;
    public void setCompanyId(String companyId) 
    {
        this.companyId = companyId;
    }

    public String getCompanyId() 
    {
        return companyId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setCounts(Long counts) 
    {
        this.counts = counts;
    }

    public Long getCounts() 
    {
        return counts;
    }

    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("deptName", getDeptName())
            .append("companyId", getCompanyId())
            .append("name", getName())
            .append("fileName", getFileName())
            .append("counts", getCounts())
            .append("fileUrl", getFileUrl())
            .append("fileType", getFileType())
            .append("type", getType())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
